package com.ruoyi.mobile.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mobile.mapper.MedicalRecordPicMapper;
import com.ruoyi.mobile.domain.MedicalRecordPic;
import com.ruoyi.mobile.service.IMedicalRecordPicService;

/**
 * 病历记录附件Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-09-19
 */
@Service
public class MedicalRecordPicServiceImpl implements IMedicalRecordPicService 
{
    @Autowired
    private MedicalRecordPicMapper medicalRecordPicMapper;

    /**
     * 查询病历记录附件
     * 
     * @param id 病历记录附件主键
     * @return 病历记录附件
     */
    @Override
    public MedicalRecordPic selectMedicalRecordPicById(Integer id)
    {
        return medicalRecordPicMapper.selectMedicalRecordPicById(id);
    }

    /**
     * 查询病历记录附件列表
     * 
     * @param medicalRecordPic 病历记录附件
     * @return 病历记录附件
     */
    @Override
    public List<MedicalRecordPic> selectMedicalRecordPicList(MedicalRecordPic medicalRecordPic)
    {
        return medicalRecordPicMapper.selectMedicalRecordPicList(medicalRecordPic);
    }

    /**
     * 新增病历记录附件
     * 
     * @param medicalRecordPic 病历记录附件
     * @return 结果
     */
    @Override
    public int insertMedicalRecordPic(MedicalRecordPic medicalRecordPic)
    {
        return medicalRecordPicMapper.insertMedicalRecordPic(medicalRecordPic);
    }

    /**
     * 修改病历记录附件
     * 
     * @param medicalRecordPic 病历记录附件
     * @return 结果
     */
    @Override
    public int updateMedicalRecordPic(MedicalRecordPic medicalRecordPic)
    {
        return medicalRecordPicMapper.updateMedicalRecordPic(medicalRecordPic);
    }

    /**
     * 批量删除病历记录附件
     * 
     * @param ids 需要删除的病历记录附件主键
     * @return 结果
     */
    @Override
    public int deleteMedicalRecordPicByIds(Integer[] ids)
    {
        return medicalRecordPicMapper.deleteMedicalRecordPicByIds(ids);
    }

    /**
     * 删除病历记录附件信息
     * 
     * @param id 病历记录附件主键
     * @return 结果
     */
    @Override
    public int deleteMedicalRecordPicById(Integer id)
    {
        return medicalRecordPicMapper.deleteMedicalRecordPicById(id);
    }
}
